/**
 * 
 */
package com.kandinfo.survey.questionnaire.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.kandinfo.base.common.dto.ResultDto;
import com.kandinfo.survey.questionnaire.dto.QuestionnaireDetailRequestDto;
import com.kandinfo.survey.questionnaire.service.QuestionnaireDetailService;

/**
 * 问卷明细Controller, add on 11/30/2016
 * 
 * @author Patrick-chenzp
 */
@Controller
@RequestMapping(value = "/questionnairedetail")
public class QuestionnaireDetailController {

    @Autowired
    QuestionnaireDetailService questionnaireDetailService;
    
	/**
	 * 关联题目和问卷
	 */
	@RequestMapping(value = "/connect-quesnaire-ques", method = RequestMethod.POST)
	public ResultDto connectQuesnaireQues(@RequestBody QuestionnaireDetailRequestDto requestDto) {
		return questionnaireDetailService.connectQuesnaireQues(requestDto);
	}
	
}
